package com.woniu.controller;

import com.woniu.service.MenuService;
import com.woniu.until.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: MenuController
 * Description:
 *
 * @author whale
 * @Create 2023/11/1 12:15
 * @Version 1.0
 */
@RestController
@RequestMapping("/menu")
public class MenuController {
    @Autowired
    private MenuService menuService;

    @GetMapping("/queryAll")
    public ResponseData<?> queryUserMenu() {
        return menuService.queryUserMenu();
    }
}
